package
{
    import flash.display.Sprite;
    
    import library.ASTUce.Runner;
    import library.ASTUce.metadata;
    
    import air.AllTests;
    
    [SWF(width="400", height="400", backgroundColor="0xffffff", frameRate="24", pageTitle="tests runner", scriptRecursionLimit="1000", scriptTimeLimit="60")]
    public class TestRunner extends Sprite
    {
        public function TestRunner()
        {
            super();
            
            //configure
            library.ASTUce.metadata.config.maxColumn           = 64;
            library.ASTUce.metadata.config.showConstructorList = false;
            
            //filter more when launching with ADL
            var ADL_filter:Array = [ "at global/runtime::ADLEntry()",
                                     "ADLAppEntry",
                                     "runtime::AppRunner",
                                     "runtime::ContentPlayer" ];
            library.ASTUce.metadata.config.filteredPatterns = library.ASTUce.metadata.config.filteredPatterns.concat( ADL_filter );
            
            
            //run
            Runner.main( air.AllTests.suite() );
        }
    }
}